package com.yitong.base.dao.api;

import java.sql.SQLException;
import java.util.List;

import javax.sql.DataSource;

import com.yitong.base.exception.DaoException;

public abstract interface WriteDao {
	public abstract boolean insert(String paramString, Object paramObject) throws DaoException, SQLException;

	public abstract boolean update(String paramString, Object paramObject) throws DaoException, SQLException;

	public abstract boolean delete(String paramString, Object paramObject) throws DaoException, SQLException;

	public abstract Object load(String paramString, Object paramObject) throws DaoException;

	public abstract List<?> find(String paramString, Object paramObject) throws DaoException;

	public abstract List<?> find(String paramString, Object paramObject, int star, int end) throws DaoException;

	public abstract boolean exists(String paramString, Object paramObject) throws DaoException;

	public abstract long count(String paramString, Object paramObject) throws DaoException;

	public abstract String getNameSpace(Object paramObject) throws DaoException;

	public abstract DataSource getDataSource() throws DaoException;

}